<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
    <style>
        .title{
            color: red;
            font-weight: bold;
        }
        .size{
            font-size: 40px;
            line-height: 50px
        }
        .line{
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div id="app">
        
        <!-- <a :href="link">百度一下</a> -->

        <!-- <h2 v-bind:class="isTitle">俄罗斯说今天下午3点将发射核弹摧毁美国白宫....</h2> -->


        <!-- <h2 v-bind:class="{title: isTitle, size: isSize}">俄罗斯说今天下午3点将发射核弹摧毁美国白宫....</h2> -->

        <h2 class="line" :class="{title: isTitle, size: isSize}">俄罗斯说今天下午3点将发射核弹摧毁美国白宫....</h2>

        <button @click="change()">切换</button>
    </div>
    <script>
        new Vue({
            el:'#app',
            data:{
                imgSrc:"",
                link:"https://www.baidu.com",
                isTitle: true,
                isSize: false
            },
            methods:{
                change(){
                    this.isTitle = !this.isTitle;
                    this.isSize = !this.isSize;
                }
            }
        })
    </script>
</body>
</html>